<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    table {
      width: 300px;
      height: 300px;
      /* 设置表头的位置 top | bottom*/
      caption-side: bottom;
      /* 边框设置成单边框 collapse | collapse*/
      border-collapse: collapse;
      /* 保持每个单元格宽相同 fixed */
      table-layout: fixed;
    }

    .box {
      width: 300px;
      overflow: hidden;
    }

    .tabel {
      width: 302px;
      height: 300px;
      padding: 0;
      border-right: 1px solid #000;
      border-bottom: 1px solid #000;
      margin-left: -1px
    }

    .tabel li {
      float: left;
      list-style: none;
      width: 100px;
      height: 100px;
      box-sizing: border-box;
      border-top: 1px solid #000;
      border-left: 1px solid #000;
    }
  </style>
</head>

<body>
  <h3>用ul模拟table(完整table和左右没有边框的table)</h3>
  <div class="box">
    <ul class="tabel">
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
      <li></li>
    </ul>
  </div>
  <hr />
  <!-- <table border="1">
    <caption>测试表格</caption>
    <tr>
      <td>11</td>
      <td>2</td>
      <td>3</td>
      <td>4</td>
    </tr>
    <tr>
      <td>11</td>
      <td>2</td>
      <td>3</td>
      <td>4</td>
    </tr>
    <tr>
      <td>11</td>
      <td>2</td>
      <td>3</td>
      <td>4</td>
    </tr>
    <tr>
      <td>11</td>
      <td>2</td>
      <td>3</td>
      <td>4</td>
    </tr>
  </table> -->
</body>

</html>